image: Remove private struct from public header
authorTimm Bäder <mail@baedert.org>
Fri, 21 Dec 2018 08:14:20 +0000 (09:14 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 31 Dec 2018 11:44:02 +0000 (12:44 +0100)
gtk/gtkimage.c
gtk/gtkimage.h

index 5aa0ea5cb9180ad58bb75e7ba60c79ed70333b8b..8acceb12e9fc95bf4666f909c903ac511ab1b3e4 100644 (file)
  */
 
 
-struct _GtkImagePrivate
+typedef struct
 {
   GtkIconHelper *icon_helper;
   GtkIconSize icon_size;
 
   float baseline_align;
 
-  gchar                *filename;       /* Only used with GTK_IMAGE_SURFACE */
-  gchar                *resource_path;  /* Only used with GTK_IMAGE_SURFACE */
-};
-
+  char *filename;
+  char *resource_path;
+} GtkImagePrivate;
 
 static void gtk_image_snapshot             (GtkWidget    *widget,
                                             GtkSnapshot  *snapshot);
index eb98055655bce8db749db0e2cdc51afafd71b4b7..87f47bb7bed5370c232edd34b2d716ba44d47886 100644 (file)
@@ -45,7 +45,6 @@ G_BEGIN_DECLS
 
 
 typedef struct _GtkImage              GtkImage;
-typedef struct _GtkImagePrivate       GtkImagePrivate;
 typedef struct _GtkImageClass         GtkImageClass;
 
 /**